<?php

	class Condition {
		private $where;
		private $order;
		
		public function __construct($where,$order){
			$this->where = $where;
			$this->order = $order;
		}
		
		function con(){
			$this->where = $this->where ? 'where '.$this->where : NULL;
			$this->order = $this->order ? 'order by '.$this->order.' desc':NULL;
			$pageNum = $this->where.$this->order;
			return $pageNum;
		}
	}

?>